#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QEvent>
#include "framelesswindow.h"

class MyWidget : public FramelessWindow
{
    Q_OBJECT

public:
    MyWidget(QWidget *parent = nullptr);
    ~MyWidget();

protected:
    void changeEvent(QEvent *event);

private:
    // 对界面进行初始化
    void initForm();
private:
    // 标题栏
    QWidget* titleWidget;
    QLabel* lblIcon;
    QLabel* lblTitle;
    QPushButton* btnClose;
    QPushButton* btnMax;
    QPushButton* btnMin;

    // 主体
    QWidget* mainWidget;
};
#endif // MYWIDGET_H
